import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    { path: '/', name: 'home', component: () => import('../views/HomeView.vue') },
    { path: '/demo', name: 'demo', component: () => import('../views/DemoView.vue') },
    { path: '/shop', name: 'shop', component: () => import('../views/ShopView.vue') },
    { path: '/book', name: 'book', component: () => import('../views/BookView.vue') },
    { path: '/user', name: 'user', component: () => import('../views/UserView.vue') },
    { path: '/rank', name: 'rank', component: () => import('../views/RankView.vue') },
    { path: '/category', name: 'category', component: () => import('../views/CategoryView.vue') },
    { path: '/search', name: 'search', component: () => import('../views/SearchView.vue') },
  ],
})

export default router
